#include("../_inc/_layout.html" )
#@layout("我的消息 - Jboot Fly", "", "","user")
#define content()

<div class="layui-container fly-marginTop fly-user-main">

  #include("../_inc/_user_left_menu.html",index = 3)

  <div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
  </div>
  <div class="site-mobile-shade"></div>
  
  <div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
  </div>
  <div class="site-mobile-shade"></div>
  
  
  <div class="fly-panel fly-panel-user" pad20>
	  <div class="layui-tab layui-tab-brief" lay-filter="user" id="LAY_msg" style="margin-top: 15px;">
        #if(pageData && pageData.list.size() > 0 )
	    <button class="layui-btn layui-btn-danger" id="LAY_delallmsg">清空全部消息</button>
	     <div  id="LAY_minemsg" style="margin-top: 10px;">
        <ul class="mine-msg">
          #for(message : pageData.list)
          <li data-id="#(message.id)">
            <blockquote class="layui-elem-quote">
              <a href="/user/#(message.from_user_id)" target="_blank"><cite>#(message.fromUser.nickname ??)</cite></a>回答了您的帖子<a target="_blank" href="/post/#(message.post_id)"><cite>#(message.post.title ??)</cite></a>
            </blockquote>
            <p><span>1小时前</span><a href="javascript:;" class="layui-btn layui-btn-small layui-btn-danger fly-delete">删除</a></p>
          </li>
          #end
        </ul>
         #include("../_inc/_pagination.html")
         #else
           <div class="fly-none">您暂时没有最新消息</div>
         #end
      </div>
	  </div>
	</div>

</div>

#end